package com.vanguard.commons.echarts;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Title: 柱状图类目轴数据类
 * @Description:
 * @Author: vanguard
 * @Version: 1.0
 * @Date: 2019/03/14
 */
public class CategoryAxis {

    private List data;


    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }

    public CategoryAxis data(Object... values) {
        if (values != null && values.length != 0) {
            if (this.data == null) {
                this.data = new ArrayList();
            }
            this.data.addAll(Arrays.asList(values));
            return this;
        } else {
            return this;
        }
    }
}
